package com.detooa.detooa.utils;

import java.io.IOException;
import java.util.Properties;

import com.detooa.detooa.config.DataEaseConfig;

/**
 * 读取配置文件类
 */
public class PropertiesUtils {
    public static Properties readProperties(String propertiesPath) throws IOException {
        Properties properties = new Properties();
        properties.load(DataEaseConfig.class.getClassLoader().getResourceAsStream(propertiesPath));
        return properties;
    }
}
